/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package slcu.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author    tito
 * @generated
 */
public class PersonalDelMinisterioSoap implements Serializable {
	public static PersonalDelMinisterioSoap toSoapModel(
		PersonalDelMinisterio model) {
		PersonalDelMinisterioSoap soapModel = new PersonalDelMinisterioSoap();

		soapModel.setPersonalId(model.getPersonalId());
		soapModel.setNombre(model.getNombre());
		soapModel.setMail(model.getMail());

		return soapModel;
	}

	public static PersonalDelMinisterioSoap[] toSoapModels(
		PersonalDelMinisterio[] models) {
		PersonalDelMinisterioSoap[] soapModels = new PersonalDelMinisterioSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static PersonalDelMinisterioSoap[][] toSoapModels(
		PersonalDelMinisterio[][] models) {
		PersonalDelMinisterioSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new PersonalDelMinisterioSoap[models.length][models[0].length];
		}
		else {
			soapModels = new PersonalDelMinisterioSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static PersonalDelMinisterioSoap[] toSoapModels(
		List<PersonalDelMinisterio> models) {
		List<PersonalDelMinisterioSoap> soapModels = new ArrayList<PersonalDelMinisterioSoap>(models.size());

		for (PersonalDelMinisterio model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new PersonalDelMinisterioSoap[soapModels.size()]);
	}

	public PersonalDelMinisterioSoap() {
	}

	public long getPrimaryKey() {
		return _personalId;
	}

	public void setPrimaryKey(long pk) {
		setPersonalId(pk);
	}

	public long getPersonalId() {
		return _personalId;
	}

	public void setPersonalId(long personalId) {
		_personalId = personalId;
	}

	public String getNombre() {
		return _nombre;
	}

	public void setNombre(String nombre) {
		_nombre = nombre;
	}

	public String getMail() {
		return _mail;
	}

	public void setMail(String mail) {
		_mail = mail;
	}

	private long _personalId;
	private String _nombre;
	private String _mail;
}